package com.admin.utils.id;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.StrUtil;

/**
 * @author kuaiting
 */
public class IDUtil {
   private static Snowflake snowflake=null;
    public static String createId () {
        if(StrUtil.isBlankIfStr (snowflake)){
            snowflake = cn.hutool.core.util.IdUtil.getSnowflake (1, 1);
        }
        return snowflake.nextId ()+"";
    }



}


